import java.io.IOException;
import java.net.InetAddress;

public class IPTest {

	public static void main(String[] args) {
		try {
			InetAddress adr = InetAddress.getByName("10.252.11.12");
			System.out.println("Host is reachable: " + adr.isReachable(3000));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}